
const List = (props) => {

  const { list = [], renderItem } = props;

  return <div style={{ border: '1px solid red' }}>
            {list.map(renderItem)}
         </div>;
};

export default List;